import axios from '../axios'

export default {
    //获取产品
    getInsures(params){
        return axios({
            url:"insures/getInsures",
            method:'get',
            params
        })
    },
    //新增产品
    addInsures(data){
        return axios({
            url:"/insures/addInsures",
            method:'post',
            data
        })
    },
    //删除产品
    delInsures(data){
        return axios({
            url:"/insures/delInsures",
            method:'post',
            data
        })
    },
    //通过ID获取待修改产品
    getInsuresById(_id){
        return axios({
            url:"/insures/"+_id,
            method:'get',
        })
    },
    //修改产品
    updateInsures(data){
        return axios({
            url:"insures/updateInsures",
            method:'post',
            data
        })
    }
}